import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import {resolve} from 'path'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  resolve:{
    alias:{
      '@':resolve(__dirname,'src')
    },
    extensions:['.js','.vue','.json','.glsl']
  },
  server: {
    port: 5000,
    host: '0.0.0.0',
    // proxy: {
    //   '/api': 'http://web2.nbhuojian.com/',
    // },
  },
})
